package com.cskaoyan._08game._01lol;

/**
 * @description:
 * @author: 景天
 * @date: 2023/2/4 11:45
 **/
/*
用面向对象的思想模拟LOL当中盖伦的战斗
 */
public class Demo {
    public static void main(String[] args) {
        // 创建Hero对象
        Hero hero = new Hero("盖伦", "沉默", "勇气", "转圈圈", "大宝剑");
        // 调用其方法
        hero.fight();
    }
}

class Hero{
    // 成员变量
    String name;
    String skillQ;
    String skillW;
    String skillE;
    String skillR;

    public Hero(String name, String skillQ, String skillW, String skillE, String skillR) {
        this.name = name;
        this.skillQ = skillQ;
        this.skillW = skillW;
        this.skillE = skillE;
        this.skillR = skillR;
    }

    // 成员方法
    public void fight() {
        System.out.println(name+"这个英雄在使用"+skillR+"技能进行战斗," +
                "Hero will never die");
    }
}